import { defineStore } from "pinia";
import { ref } from "vue";

export const useChannelStore = defineStore('channel', () => {
    // 频道id
  const channelId = ref(0)
//   修改频道id的函数
  const changeChannel = (id: number) => {
    channelId.value = id
  }
  return { channelId, changeChannel }
})